/*
 ============================================================================
 Page	     : 206
 Name        : vowels.c
 Date	     : 20210404
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 使用多重标签
 ============================================================================
 */

#include <stdio.h>

int main(void)
{
	char ch = 0;
	int a_ct = 0;
	int e_ct = 0;
	int i_ct = 0;
	int o_ct = 0;
	int u_ct = 0;

	printf("Enter some text; enter # to quit.\n");
	while((ch = getchar()) != '#')
	{
		switch(ch)
		{
			case 'a':
			case 'A':
				a_ct++;
				break;
			case 'e':
			case 'E':
				e_ct++;
				break;
			case 'i':
			case 'I':
				i_ct++;
				break;
			case 'o':
			case 'O':
				o_ct++;
				break;
			case 'u':
			case 'U':
				u_ct++;
				break;
			default:
				break;
		}			// switch结束
	}				// while循环结束
	printf("number of vowels:   A    E    I    O    U\n");
	printf(" 		 %4d %4d %4d %4d %4d\nd", a_ct, e_ct, i_ct, o_ct, u_ct);

	return 0;
}

